﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartConference.Domain
{
    /// <summary>
    /// 会议室实体类
    /// </summary>
    [Table("MeetingRooms")]
    public class MeetingRoom:BaseEntity
    {
        /// <summary>
        /// 会议室ID
        /// </summary>
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 会议室名称
        /// </summary>
        [Required]
        [MaxLength(255)]
        public string RoomName { get; set; } = string.Empty;
        /// <summary>
        /// 会议室图片
        /// </summary>
        [Required]
        [MaxLength(255)]
        public string RoomImage { get; set; } = string.Empty;

        /// <summary>
        /// 容纳人数
        /// </summary>
        [Required]
        public int Capacity { get; set; }

        /// <summary>
        /// 会议室位置
        /// </summary>
        [Required]
        [MaxLength(255)]
        public string Location { get; set; } = string.Empty;

        /// <summary>
        /// 管理员
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Administrator { get; set; } = string.Empty;

        /// <summary>
        /// 联系电话
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string ContactNumber { get; set; }=string.Empty;

        /// <summary>
        /// 预约审批
        /// </summary>
        [Required]
        public bool ReservationApproval { get; set; } = false;

        /// <summary>
        /// 是否为智能会议室
        /// </summary>
        [Required]
        public bool IsSmartRoom { get; set; } = false;

    }
}
